<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/messages.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script language="JavaScript" type="text/javascript"
	src="${ctx}/scripts/public.js"></script>
<script language="JavaScript" type="text/javascript"
	src="${ctx}/scripts/global.js"></script>
<!--<script language="JavaScript" type="text/javascript"-->
<!--	src="${ctx}/scripts/validation/validation.js"></script>-->
<!--<script language="JavaScript" type="text/javascript"-->
<!--	src="${ctx}/scripts/validation/effects.js"></script>-->
<!--<script language="javascript" src="${ctx}/scripts/common/prototype.js"></script>-->

<link href="${ctx}/styles/listTable.css" rel="stylesheet"
	type="text/css">
<link href="${ctx}/styles/show.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/styles/public.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/aux_window.css" rel="stylesheet"
	type="text/css">
<link href="${ctx}/styles/validation/style.css" rel="stylesheet"
	type="text/css">

<script type="text/javascript"><!--
	var houseId = null;
	var houseNum = null;
	var index = null;
/*
	function openHouseAdd(){
		var url = '${ctx}/customer_ownerAction.do?method=initOwnerHouseAdd';
		top.windowOpen(url, 'ownerBaseAdd', '新增住房信息',330,470);
	}

	function openHouseEdit(){
		if(houseId == null) {
			alert("请选择一个房间");
			return;
		}
		var url = '${ctx}/customer_ownerAction.do?method=initOwnerHouseEdit&edit_houseId=' + houseId;
		top.windowOpen(url,"houseEditFrm","修改住房信息",330,470);
	}
	function openHouseDelete(){
		if(index == null){
			alert("请选择一个房间");
			return;
		}
		if(confirm("您确定删除该条记录吗？")){
			var url = "${ctx}/customer_ownerAction.do?method=deleteCustomerHouseCache&houseId="+ houseId + "&houseNumber="+ houseNum +"&index=" + index;
			var myAjax = new Ajax.Request(url, {method: 'post', parameters: null, onComplete: reLoadIframe});
		}
	}
*/
/************base modify    ***/
/*	function submitForm(){
		var _form = document.forms[0];
		var isPass = _form.fireEvent("onSubmit");
		if(isPass){
			var formAction = _form.action;
			var parameters = ${_form.name}.serialize();
			new Ajax.Request(formAction, {method: 'post', parameters: null, onComplete: closeFrm});
		}
	}

	function closeFrm(){
		windowClose();
	} */
/* ****common var ** */
	function setHouseId(house_id){
		houseId = house_id;
	}
	function setHouseNum(houseNum_){
		houseNum = houseNum_;
	}
	function setIndex(index_){
		index = index_;
	}

	function reLoadIframe(){
		document.frames["ownerHouseListIframe"].location = "${ctx}/customer_ownerAction.do?method=findOwnerHouseCachePage&ec_p=1&ec_crd=5&contextMenuFlag=0";
	}
--></script>
</head>
<body>
<div style="overflow:auto; height:400px;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td valign="top">
		<table width="100%" border="0" cellpadding="0" cellspacing="0"
			id="tab_subMenu1">
			<tr>
				<td>
				<table width="100%" border="0" align="center" cellpadding="5"
					cellspacing="0">
					<tr>
						<td>
						<table width="100%" border="0" cellpadding="0" cellspacing="1"
							class="aux_intable_color" style="display:show">
							<tr>
								<td colspan="4" class="aux_titletable">${key.customer_owner_houseinfo }</td>
							</tr>
						</table>
						<table width="100%" border="0" cellpadding="0" cellspacing="0"
							class="tab_line">
							<tr>
								<td colspan="5"><iframe id="ownerHouseListIframe"
									frameborder="0"
									src="${ctx}/customer_ownerAction.do?method=findOwnerHouseCachePage&ec_p=1&ec_crd=5&contextMenuFlag=0"
									width="100%"></iframe></td>
							</tr>
						</table>
						</td>
					</tr>
				</table>
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					class="tab_line">
					<tr>
						<td valign="top"><c:if test="${curParticipantTypeCode eq '001'}">
								<input
								type="hidden" name="participantId"
								value="${individual.participantId}"> <input
								type="hidden" id="certificateTypeName"
								name="certificateTypeName" value="">

							<table width="100%" border="0" cellpadding="0" cellspacing="1"
								class="aux_intable_color" id="table01" style="display:show" oncontextmenu="return false;">
								<tr>
									<td colspan="4" class="aux_titletable">${key.customer_owner_base_infomation }</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_name }</td>
									<td class="aux_intable_td2">${individual.participantName}</td>
									<td class="aux_intable_td1">${key.customer_owner_idtype }</td>
									<td class="aux_intable_td2">${individual.certificateTypeName}</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_salutation }</td>
									<td class="aux_intable_td2">${individual.appellative}</td>
									<td class="aux_intable_td1">${key.customer_owner_id_number }</td>
									<td class="aux_intable_td2">${individual.certificateNo}</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_sex }</td>
									<td class="aux_intable_td2">${individual.sexDisplayValue}</td>

									<td class="aux_intable_td1">${key.customer_owner_telephone }</td>
									<td class="aux_intable_td2">
									${individual.telephone}
									</td>
								</tr>
								<tr>
									<td colspan="4" class="aux_titletable">${key.customer_owner_urgency_linkinfo }</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_urgency_linkman }</td>
									<td class="aux_intable_td2">${individual.emergencyMan}</td>
									<td class="aux_intable_td1">${key.customer_owner_urgency_linktel }</td>
									<td class="aux_intable_td2">${individual.emergencyPhone}</td>
								</tr>
								<tr>
									<td colspan="4" class="aux_titletable">${key.customer_owner_other_linktel }</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_date_of_birth }</td>
									<td class="aux_intable_td2">
									${individual.birthDateDisplayValue}
									</td>
									<td class="aux_intable_td1">电子邮件：</td>
									<td class="aux_intable_td2">
									${individual.email}
									</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_native_place }</td>
									<td class="aux_intable_td2">${individual.homeplace}</td>
									<td class="aux_intable_td1">${key.customer_owner_vehicle_circs }</td>
									<td class="aux_intable_td2">
									${individual.registerCar}
									</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_registered }</td>
									<td class="aux_intable_td2">${individual.registerPlace}</td>
									<td rowspan="2" valign="top" class="aux_intable_td1">${key.customer_owner_interest }</td>
									<td rowspan="2" class="aux_intable_td2">
									${individual.interestNameStr}
									</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_occupation }</td>
									<td valign="top" class="aux_intable_td2">${individual.profession}</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_organization_name }</td>
									<td class="aux_intable_td2">${individual.corporation}</td>
									<td rowspan="2" valign="top" class="aux_intable_td1">${key.customer_owner_remark }</td>
									<td rowspan="2" valign="top" class="aux_intable_td2"><textarea readonly="readonly" name="remark" cols="29" rows="2" class="textareatext">${individual.remark}</textarea></td>
								</tr>
								<tr>
									<td valign="top" class="aux_intable_td1">${key.customer_owner_link_address }</td>
									<td valign="top" class="aux_intable_td2">${individual.linkAddress}</td>
								</tr>
							</table>
						</c:if> <c:if test="${curParticipantTypeCode eq '002'}">
							<table width="100%" border="0" cellpadding="0" cellspacing="1"
								class="aux_intable_color" id="table02" style="display:show">
								<tr>
									<td colspan="4" class="aux_titletable">${key.customer_owner_organization_tab }</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_organization_name }</td>
									<td class="aux_intable_td2">${organization.participantName}</td>
									<td class="aux_intable_td1">${key.customer_owner_link_man }</td>
									<td class="aux_intable_td2">${organization.organizationLinkMan}</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_organization_address }</td>
									<td class="aux_intable_td2">${organization.address}</td>
									<td class="aux_intable_td1">${key.customer_owner_telephone }</td>
									<td class="aux_intable_td2">${organization.telephone}</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_postcode }</td>
									<td class="aux_intable_td2">${organization.zip}</td>
									<td class="aux_intable_td1">&nbsp;</td>
									<td class="aux_intable_td2">&nbsp;</td>
								</tr>
								<tr>
									<td colspan="4" class="aux_titletable">${key.customer_owner_corporation_baseinfo }</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_name }</td>
									<td class="aux_intable_td2">${organization.organizationPersonName}</td>
									<td class="aux_intable_td1">${key.customer_owner_date_of_birth }</td>
									<td class="aux_intable_td2">
									${organization.corporationBirthDateDisplayValue}
									</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_salutation }</td>
									<td class="aux_intable_td2">${organization.appellative}</td>
									<td class="aux_intable_td1">${key.customer_owner_telephone }</td>
									<td class="aux_intable_td2">
									${organization.organizationPersonPhone}
									</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_sex }</td>
									<td class="aux_intable_td2">${organization.sexDisplayValue}</td>
									<td class="aux_intable_td1">${key.customer_owner_email }</td>
									<td class="aux_intable_td2">${organization.email}</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_idtype }</td>
									<td class="aux_intable_td2">${organization.certificateTypeName}</td>
									<td class="aux_intable_td1">${key.customer_owner_link_address }</td>
									<td class="aux_intable_td2">${organization.linkAddress}</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_id_number }</td>
									<td class="aux_intable_td2">${organization.certificateNo}</td>
									<td rowspan="2" valign="top" class="aux_intable_td1">${key.customer_owner_remark }</td>
									<td rowspan="2" valign="top" class="aux_intable_td2"><textarea readonly="readonly" name="remark" cols="29" rows="2" class="textareatext">${organization.remark}</textarea></td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_registered }</td>
									<td class="aux_intable_td2">${organization.registerPlace}</td>
								</tr>
								<tr>
									<td colspan="4" class="aux_titletable">${key.customer_owner_proxyman }</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_name }</td>
									<td class="aux_intable_td2">${organization.consignerName}</td>

									<td class="aux_intable_td1">${key.customer_owner_telephone }</td>
									<td class="aux_intable_td2">
									${organization.consignerPhone}
									</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_sex }</td>
									<td class="aux_intable_td2">${organization.consignerSexDisplayValue}</td>
									<td class="aux_intable_td1">${key.customer_owner_email }</td>
									<td class="aux_intable_td2">
									${organization.consignerEmail}
									</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_idtype }</td>
									<td class="aux_intable_td2">${organization.consignerCertificateTypeName}</td>
									<td class="aux_intable_td1">${key.customer_owner_native_place }</td>
									<td class="aux_intable_td2">${organization.consignerHomeplace}</td>
								</tr>
								<tr>
									<td class="aux_intable_td1">${key.customer_owner_id_number }</td>
									<td class="aux_intable_td2">${organization.consignerCertificateNo}</td>
									<td class="aux_intable_td1">${key.customer_owner_link_address }</td>
									<td class="aux_intable_td2">${organization.consignerAddress}</td>
								</tr>
							</table>
						</c:if></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</div>
</body>
</html>
